<?php
namespace app\appadmin\controller\v1;
use app\app\Appbase;
use app\appadmin\controller\v1\User;

//提醒
class Remind extends Appbase 
{
	
	/**
	* 提醒首页
	* /appadmin/v1/remind/index
	* 需要登录 
	* @is_need_login true
	*/
	public function index($shop_id,$staff_id){
		try {
	        //TODO 项目 
	        $data['proj'] = User::instance(true)->byProject($shop_id,$staff_id);
        	//TODO 生日 
        	$data['birthday'] = User::instance(true)->birthday($shop_id,$staff_id);
        	//TODO 生日 
        	$data['kdq'] = User::instance(true)->tcdq($shop_id,$staff_id);
        	//TODO 余额
        	$data['balance'] = User::instance(true)->yebz($shop_id,$staff_id);
			//返回
			return $this->ReSucess($data);	
		} catch (\Exception $e) {
			return $this->ReError($e->getMessage());	
		}
	}
	
	
}



